package cxt.com.springcloud.controller;

import cxt.com.springcloud.client.orderClient;
import cxt.com.springcloud.pojo.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: ChengXiaotian
 * @Date: 2020-06-11 09:48
 * @Description:
 */
@RestController
public class orderController {
    @Autowired
    private orderClient orderClient;
    @GetMapping("/order/{id}")
    public CommonResult findById(@PathVariable("id")Long id){
         return orderClient.findById(id);

    }
}
